'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const r = n => n.replace(/^(?!$)(?: $)?/gm, '#');
function i(n, e) {
  return /^\n+$/.test(n) ? n.substring(1) : e ? n.replace(/^(?! *$)/gm, e) : n;
}
const s = (n, e, t) =>
  n.endsWith(`
`)
    ? i(t, e)
    : t.includes(`
`)
      ? `
` + i(t, e)
      : (n.endsWith(' ') ? '' : ' ') + t;
exports.indentComment = i;
exports.lineComment = s;
exports.stringifyComment = r;
